<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>编辑用户</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css">
</head>
<body>
<%@ include file="../header.jsp" %>
<div class="container">
    <h2>编辑用户</h2>
    <form action="${pageContext.request.contextPath}/managementUsers?action=update" method="post">
        <input type="hidden" name="id" value="${user.managementId}">
        <div class="form-group">
            <label for="username">用户名:</label>
            <input type="text" id="username" name="username" value="${user.username}" required>
        </div>
        <div class="form-group">
            <label for="password">密码:</label>
            <input type="password" id="password" name="password" value="${user.password}" required>
        </div>
        <div class="form-group">
            <label for="name">姓名:</label>
            <input type="text" id="name" name="name" value="${user.name}" required>
        </div>
        <div class="form-group">
            <label for="departmentId">部门ID:</label>
            <input type="number" id="departmentId" name="departmentId" value="${user.departmentId}" required>
        </div>
        <div class="form-group">
            <label for="contactInfo">联系方式:</label>
            <input type="text" id="contactInfo" name="contactInfo" value="${user.contactInfo}" required>
        </div>
        <div class="form-group">
            <button type="submit">更新</button>
        </div>
    </form>
</div>
</body>
</html>